import api from "@/util/api";

async function orderCount(startDate, endDate){
    let resp = await api({
        url:"/view-api/api/v1/view/orderCount",
        method:"get",
        params:{
            startDate,
            endDate
        }
    });
    return resp;
}

async function priceCount(startDate, endDate){
    let resp = await api({
        url:"/view-api/api/v1/view/priceCount",
        method:"get",
        params:{
            startDate,
            endDate
        }
    });
    return resp;

}
async function hotItems(){
    let resp = await api({
        url:"/view-api/api/v1/view/hotItems",
        method:"get",

    });
    return resp;
}

async function Count(){
    let resp = await api({
        url:"/view-api/api/v1/view/count",
        method:"get",
    })
    // console.log("三个统计数据"+resp.prices);
    return resp;
}
export {orderCount, priceCount,hotItems,Count};